Skip to content

chore: shadcn migration cleanup#80

Merged
condyl merged 1 commit intomasterfrom
cb/shadcn-migration-cleanup
Jan 21, 2026
Merged

chore: shadcn migration cleanup#80
condyl merged 1 commit intomasterfrom
cb/shadcn-migration-cleanup

Conversation

@condyl
Copy link
Copy Markdown
Collaborator

@condyl condyl commented Jan 21, 2026

This pull request refactors several UI components in the calendar generator to remove Material UI (MUI) dependencies and replace them with Tailwind CSS and Lucide icons. It also includes minor logic improvements and code cleanups in CourseTimelineComponent. The result is a more lightweight codebase with improved consistency in styling and icon usage.

UI Library Migration and Styling Updates:

  • Replaced all MUI imports, components (Box, Typography, Tooltip, etc.), and icons in CalendarNavBar.jsx and CourseTimelineComponent.jsx with Tailwind CSS classes and Lucide icons for a consistent and lightweight UI.
  • Updated layout and visual styling in CalendarNavBar.jsx and CourseTimelineComponent.jsx to use Tailwind utility classes, improving maintainability and visual consistency.

Icon Replacement:

  • Swapped MUI icons (e.g., NavigateBeforeIcon, InfoIcon, CancelIcon) for Lucide icons (ChevronLeft, Info, CircleX, etc.) throughout navigation and info buttons in CalendarNavBar.jsx.

Code and Logic Improvements:

  • Improved parsing and matching logic in CourseTimelineComponent.jsx for date/duration calculations by specifying radix in parseInt calls and clarifying destructuring assignments.
  • Renamed variables for clarity in mouse event handlers and timeline calculations (clickXhoverX, clickPercenthoverPercent, etc.).
  • Removed unused state and props (noCourses) from CalendarComponent.jsx and CalendarNavBar.jsx for cleaner code.

Dependency Cleanup:

  • Removed all MUI and Emotion dependencies from package.json, reducing bundle size and eliminating unused libraries.

Theme Script Update:

  • Simplified and improved the theme-setting script in index.html to use local storage and native color scheme toggling, ensuring better performance and user experience.

@condyl condyl merged commit 761fdcc into master Jan 21, 2026
3 checks passed
@condyl condyl deleted the cb/shadcn-migration-cleanup branch January 21, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant